<?php
namespace app\admin\controller;

use app\admin\model\Admin;
use app\admin\model\AdminNav;
use app\admin\model\Column;

class Index extends Common
{
    /** 显示 frame  框架
     * @return mixed
     */
    public function index()
    {
        //获取用户信息
        $this->assign('userInfo',Admin::getUserInfo());
        // 获取内容 模型 菜单
//        $contentList = Column::init()->getContentMenu();
//        echo '<pre>';
//        var_dump(AdminNav::getMyNav());
//        die;

        $this->assign('navList',AdminNav::getMyNav());
        return $this->fetch();
    }

    /** 主页 main
     * @return mixed
     */
    public function main(){
        return $this->fetch();
    }
}
